import request from '@/sheep/request';

export default {
	/**
	 * 查询打样单
	 */
	getPrintRecordList: (data) =>
		request({
			url: '/api/v1/order/personal/list',
			method: 'GET',
			data,
			custom: {
				showSuccess: false,
				loadingMsg: '加载中',
				successMsg: '加载完成'
			},
		}),
	/**
	 * 打样单预提交
	 */
	submitPrintPre: (data) =>
		request({
			url: '/api/v1/cart/submit-preorder',
			method: 'POST',
			data,
			custom: {
				showSuccess: false,
				loadingMsg: '加载中',
				successMsg: '加载完成'
			},
		}),
	/**
	 * 打样单正式提交
	 */
	submitPrint: (data) =>
		request({
			url: '/api/v1/preorder/submit',
			method: 'POST',
			data,
			custom: {
				showSuccess: false,
				loadingMsg: '加载中',
				successMsg: '提交成功'
			},
		}),
}